package com.citywy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;

@Controller
@RequestMapping("/test")
public class TestController {

    @RequestMapping("/test01")
    public String sayHello(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException {
        System.out.println("hello springmvc");
        return "pages/success";
    }
}
